package com.czxy.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 城市表
 * </p>
 *
 * @author xuewen
 * @since 2022-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbCity对象", description="城市表")
public class TbCity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "city_id")
    private String cityId;

    private String cityName;

    private String parentId;
    @TableField(exist = false)
    private List<TbCity> children;


}
